package com.io.dao;

import java.util.List;

import com.io.entity.one2one.Husband;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public interface TbHusbandMapper {
    int deleteByPrimaryKey(Integer sid);

    int insert(Husband record);

    int insertSelective(Husband record);

    Husband selectByPrimaryKey(Integer sid);

    int updateByPrimaryKeySelective(Husband record);

    int updateByPrimaryKey(Husband record);

    /**
     * 一对一
     *
     * @param sid 主键ID
     * @return TbHusband
     */
    Husband selectBySid(Integer sid);

    Husband getHusInfo();

    /**
     * 一对多
     *
     * @param sid 主键ID
     * @return TbHusband
     */
    Husband getCarsBySid(Integer sid);

    List<Husband> getHus();
}
